//
//  UserInfoModel.h
//  XV
//
//  Created by apple on 2019/03/11.
//  Copyright © 2019 XV. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BaseListModel.h"

/**
 用户列表list model
 */
@interface UserInfoListModel : BaseListModel


@end


@interface XRCookieModel : NSObject<NSCoding>

@property (nonatomic, copy) NSString *ssosecure1v1;

@end


/**
 用户信息model
 */
@interface UserInfoModel : NSObject<NSCoding>

//用户ID
@property (nonatomic, copy) NSString *userId;
@property (nonatomic, copy) NSString *userAccIdIM;
@property (nonatomic, copy) NSString *userSignIM;
@property (nonatomic, copy) NSString *token;
//用户头像
@property (nonatomic, copy) NSString *avatar;
//省
@property (nonatomic, copy) NSString *province;
//市
@property (nonatomic, copy) NSString *city;
//区
@property (nonatomic, copy) NSString *district;
@property (nonatomic, copy) NSString *province_id;
@property (nonatomic, copy) NSString *city_id;
//性别(f代表男 m代表女)
@property (nonatomic, copy) NSString *gender;
@property (nonatomic, assign) NSInteger level;


@property (nonatomic, copy) NSString *signature_content;
//粉丝
@property (nonatomic, copy) NSString *follower;
//关注
@property (nonatomic, copy) NSString *following;

//获取性别名称
-(NSString*)getSexText;

-(NSInteger)getSexIndex;

//获取用户信息(仅用于获取当前登录用户)
+(UserInfoModel*)readUserInfo;

//保存用户信息(仅用于当前登录用户)
-(void)saveUserInfo;

//删除用户信息
+(void)removeUserInfo;


//获取UID
+(NSString*)getUID;

//当前用户是自己
+(BOOL)isSelf:(NSString*)uid;

//是否审核状态
+(BOOL)isReviewStatus;


//登录类型 0:验证码登录 1:账号登录 2:微信登录 3:QQ登录
+(void)setLoginType:(NSInteger)loginType;
+(NSInteger)getLoginType;



@end
